import http from '@/api/http'
// import banlance from '@/banlance/index'

/**
 * 将业务所有接口统一起来便于维护
 * 如果项目很大可以将 url 独立成文件，接口分成不同的模块
 * 
 */

export const apply = (data) => {//提现申请
    // return http.post('/financial/apply',data)
    return http.post('/user/withdraw',data)
}


export const checkpass = (data) => {//提现申请
    // return http.post('/financial/apply',data)
    return http.post('/user/checkpass',data)
}


export const transfer = (data) => {//提现申请
    // return http.post('/financial/apply',data)
    return http.post('/user/transfer',data)
}

export const getLevelOrder = (data) => {//获取提现申请列表
    // return http.post('/financial/apply',data)
    return http.get('/user/getLevelOrder',data)
}

export const getProduct = (data) => {//获取提现申请列表
    // return http.post('/financial/apply',data)
    return http.get('/user/getProduct',data)
}

export const getProductDetail = (data) => {//获取提现申请列表
    // return http.post('/financial/apply',data)
    return http.get('/user/getProductDetail',data)
}


export const getRecord = (data) => {//获取提现申请列表
    // return http.post('/financial/apply',data)
    return http.get('/user/withdrawList',data)
}
export const getTransfer = (data) => {//获取提现申请列表
    // return http.post('/financial/apply',data)
    return http.get('/user/getTransfer',data)
}


export const getOrder = () => {//获取返佣记录列表
    // return http.post('/financial/apply',data)
    return http.get('/user/withdrawList')
}

export const wuliu = (data) => {//获取返佣记录列表
    // return http.post('/financial/apply',data)
    return http.post('/wuliu/exCompany',data)
}
// // 用户获取积分商品兑换列表
// export const orderRrcord = (data) => {
// 	return http.get('/stroe/orderList', data)
// }
// 默认全部导出  import api from '@/common/vmeitime-http/'
export default {
    apply,
	getOrder,
    getRecord,
	getTransfer,
	transfer,
	getLevelOrder,
	getProduct,
	getProductDetail,
	wuliu,
	checkpass
}